<?php 
 $states = $this->geo_state_model->getSelectOptions($id_countries);
 if($id_countries == "840") {
        if (!empty($states))
        {
            echo '<th>'.T_('State').'</th>';
            echo '<td><div class="input_300">'.form_dropdown('state_ID', $states, $this->input->get_post('state_ID'), 'id="id_geo_states"' . $onchange, TRUE).'</div></td>';
        }
        else
        {
            echo '<td style="padding:4px 0 0 6px; font-size:12px">'.T_('Not found').'</td>';
        }
    } else if($id_countries !== "0") {
        echo '<th>'.T_('Province').'</th>';
        echo '<td><div class="input_300">'.form_input('province','','class="input-text"').'</div></td>';
    }
?>